package com.itheima.dao;

import com.itheima.pojo.OrderSetting;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.sql.Date;
import java.util.ArrayList;
import java.util.List;

public interface OrderSettingDao {
    Boolean betchAdd(ArrayList<OrderSetting> list);
    Integer findByDate(@Param("orderDate") Date orderDate);
    boolean update(@Param("reservations")Integer reservations,@Param("orderDate")Date orderDate);
    ArrayList<OrderSetting> findBymonth(@Param("date1") Date date1, @Param("date2")Date date2);

    void editNumberByOrderDate(OrderSetting orderSetting);

}
